package com.peter.design.pattern.chain.general;

/**
 * @Auther: 肖冬
 * @Date: 2020/7/31 00:26
 * @Description:
 */
public class Test {
    public static void main(String[] args) {
        Handler handleA = new ConcreteHandlerA();
        Handler handlerB = new ConcreteHandlerB();

        handleA.setNextHandler(handlerB);
        handleA.handleRequest("requestB");
    }
}
